//
//  UIBarButtonItem+custom.h
//  YDGJ
//
//  Created by ydcq on 16/5/5.
//  Copyright © 2016年 Galaxy360. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIBarButtonItem (custom)

+ (UIBarButtonItem *)barButtonWithTitle:(NSString *)title titleColor:(UIColor *)color target:(id)target selector:(SEL)selector;

+ (UIBarButtonItem *)barButtonWithTitle:(NSString *)title titleColor:(UIColor *)color clickBlock:(dispatch_block_t)blk;

@property (nonatomic, copy) void (^clickBlock)();

- (NSString *)titleName;

- (void)setTitleName:(NSString *)title;

@end
